package com.tanggh.dao.impl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.tanggh.dao.CityDao;
import com.tanggh.entity.City;

@Repository
public class CityDaoImpl extends GenericDaoImpl<City> implements CityDao {

	@Override
	public List<City> getSortCity() {
		String sql = "from City c where showFlag=1 order by orderId";
		Query query = getSession().createQuery(sql);
		return query.list();
	}

}
